home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Reference Guide
/
C-C++ Interactive Reference Guide.iso
/
c_ref
/
csource1
/
cenvid
/
dirstat.bat
< prev
next >
Wrap
DOS Batch File
|
1993-06-23
|
815b
|
21 lines
@echo OFF
REM **************************************************************************
REM *** DirStat.bat - Use Find#.cmm to parse directory listings and output ***
REM *** statistics about the current directory. This batch ***
REM *** file is very specific to COMMAND.COM under MSDOS ***
REM *** version 5.0 and is not guaranteed to give correct ***
REM *** results in any other circumstance. ***
REM **************************************************************************
dir | find "file(s)" | cenvi Find#.cmm
set FILE_COUNT=%NUMBER%
dir | find "file(s)" | cenvi Find#.cmm -1
ECHO The current directory contains %FILE_COUNT% files and uses %NUMBER% bytes.
REM Clean-up
set NUMBER=
set FILE_COUNT=